<?php

	$t=new Sou("default"); //The template loader class for this controller is initialized
	$t->assign("controller",$controller);
	$t->assign("action",$action);
	//Switch to appropriate of action as when required
	switch($action)
	{
		case "index":
			default_index($t);
			break;
		case "login":
			default_login($t);
			break;
		case "login-attempt":
			default_loginattempt($t);
			break;
		default:
			echo "Action not found";
	}
	
	//Lets define each individual action
	
	//This function will render the login page if the user is not logged in 
	function default_index($t)
	{
		
	}
	
	//login screen
	function default_login($t)
	{
		$t->display("login");
	}
	
	//
	function default_loginattempt($t)
	{
		$t->display("index");
	}
?>